﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace XF.FM
{
    public class CompareCnAttribute : CompareAttribute
    {
        public CompareCnAttribute(string ortherProperty) :base(ortherProperty)
        {
            
        }
        public override string FormatErrorMessage(string name)
        {
            if (string.IsNullOrEmpty(ErrorMessage))
                ErrorMessage = "'{0}' 和 '{1}' 不一致";
            return base.FormatErrorMessage(name);
        }
    }
}
